﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MvcRazorConverter
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("Finally Someone Made a Razor Converter you can just use!");
            Console.WriteLine("This software was developed by Al Katawazi (Author of MVC Website Programming)");
            Console.WriteLine("If you like this product you should use my companies Dedicated Servers, great for MVC and starting at $29.99 @ www.smarterdedicatedserver.com ");
            Console.WriteLine();
            Console.WriteLine("Additional improvements by Michiel Post (http://www.michielpost.nl)");
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("=======================Read Me===============================");
            Console.WriteLine("To use this app drop the exe in your view folder, this program will automatically scan the folder (including subfolders) and convert them from aspx to cshtml files for you");
            Console.WriteLine("When ready hit enter and the process will start!");
            Console.WriteLine("=============================================================");
            Console.WriteLine("Input main ContentPlaceHolderID (optional):");
            string contentPlaceHolderID = Console.ReadLine();
            RazorConversor.ConvertAll(AppDomain.CurrentDomain.BaseDirectory.ToString(), contentPlaceHolderID);
            Console.WriteLine("All Done");
            Console.ReadLine();
            Console.ReadLine();
        }
    }
}
